Repository navigation
Collect file metadata in FileListWidget's vue implementation - #13098
johnatawnclementawn wants to merge 12 commits into
Conversation
|
hey @chrabyrd - looking for a pattern approval here. Started out with passing props for field hiding overrides (like we do with |
chrabyrd
left a comment
There was a problem hiding this comment.
Overall this looks pretty good and I appreciate getting parity going! But I think the pattern should change.
- Right now you're hacking
cardXNodeXWidgetDatato add a delta between what's presented to the widget and what's actually in the DB in order to hide metadata fields, yeah? There's a few ways we could hide the fields without adding in a new pattern.
eg use :hidden-metadata-fields="['title'] and trust the generic $attrs passthrough, or use cardXNodeXWidgetDataOverrides on callsites that need to hide those fields.
-
also I'd argue we should always show the language picker for each field, and the default option is derived the from system's selected language
-
it looks like nothing's enforcing the alt text required bit that's been added? also it's keying off of
imagesOnlywhich isn't a great heuristic to enforce this on I think? since it's possible to still add images when the list could beany -
lastly I think this branch could have a test cull pass to reduce any redundant tests and lighten the the PR a bit.
Happy to chat about any of this just lemme know! 👍
7e7d699 to
05bdddc
Compare
I hear you on this, the reason it's here is because of our datatype validation for image-only FileList nodes: arches/arches/app/datatypes/datatypes.py Line 1220 in 1026769 I think this is a happy path between removing and letting people run into failed saves due to missing alt-text, and waiting for us to implement front-end validation across vue-components |
536840f to
5e2e15e
Compare
86616d5 to
c6baaef
Compare
yeah that's fair 👍 |
Types of changes
Description of Change
Adds ability to collect file metadata in the vue component implementation. It also adds a backdoor for implementors (driven by Lingo's use case) to hide certain metadata fields based on data collection needs. For instance, Lingo has modeled
titleanddescription(and accompanying language nodes) so we need to save those data in two places - duplicate form fields would look cluttered and cause extra effort for users.This is listed as a bugfix because we classify accessibility improvements as bugfixes.
Issues Solved
Closes #13094
Checklist
Accessibility Checklist
Developer Guide
Ticket Background
Further comments